// import store from '../store'
export default ({ app }) => {
  app.router.beforeEach((to, from, next) => {
    // console.log('to ', to.path)
    // console.log('from ', from.path)
    if (from.path === '/search') {
      // console.log('清空category')
      app.store.commit('setSearchCategory', '')
    }
    next()
  })
}
